Make GtkModelButton work with touch
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Sep 2014 03:33:23 +0000 (23:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 25 Sep 2014 03:33:23 +0000 (23:33 -0400)
commit96fd15454b9bf95524ab6b61c64e6e257b10e9e9
treee7e43b5945eba83f15483da1e6795d0782330e3c
parent4f76f18b9f74bbeb997d49d2ae2396b7762e9bf1
Make GtkModelButton work with touch

Some recent refactoring changed things so that in_button is no
longer TRUE when released() is called for touch events. As a minimal
fix, let GtkButton do more of the work by chaining up to its
pressed and released handlers, which know how to handle touch
events. This could be further improved by leaving more of the
state handling to GtkButton, like it was done for GtkToggleButton.
gtk/gtkmodelbutton.c